package com.zy.ems.common.error;

import com.zy.ems.common.exception.ErrorStatus;

public class SysCode extends ErrorStatus {

	protected SysCode(int code, String reasonPhrase) {
		super(code, reasonPhrase);
	}

	/**
	 * 系统错误
	 */
	public static final ErrorStatus sys_001 = new SysCode(10001, "System error");

	/**
	 * 服务暂停
	 */

	public static final ErrorStatus sys_002 = new SysCode(10002, "Service unavailable");

	/**
	 * 远程服务错误
	 */

	public static final ErrorStatus sys_003 = new SysCode(10003, "Remote service error");

	/**
	 * IP限制不能请求该资源
	 */

	public static final ErrorStatus sys_004 = new SysCode(10004, "IP limit");

	/**
	 * 该资源需要appkey拥有授权
	 */

	public static final ErrorStatus sys_005 = new SysCode(10005, "Permission denied,need a high level appkey");
	/**
	 * 减少source
	 */

	public static final ErrorStatus sys_006 = new SysCode(10006, "Source paramter(appkey) is missing");
	/**
	 * 不支持Mediatype（%s）
	 */

	public static final ErrorStatus sys_007 = new SysCode(10007, "Unsupport mediatype(%s)");
	/**
	 * 参数错误，请参考API文档
	 */

	public static final ErrorStatus sys_008 = new SysCode(10008, "Param error,see doc for more info");
	/**
	 * 任务过多，系统繁忙
	 */

	public static final ErrorStatus sys_009 = new SysCode(10009, "Too many pending tasks,system is busy");
	/**
	 * 任务超时
	 */

	public static final ErrorStatus sys_010 = new SysCode(10010, "Job expired");
	/**
	 * RPC 错误
	 */

	public static final ErrorStatus sys_011 = new SysCode(10011, "RPC error");
	/**
	 * 非法请求
	 */

	public static final ErrorStatus sys_012 = new SysCode(10012, "lllegal request");
	/**
	 * 不合法的珍品网用户
	 */

	public static final ErrorStatus sys_013 = new SysCode(10013, "Invalid zhenpin userid");
	/**
	 * 应用的接口访问权限受限
	 */

	public static final ErrorStatus sys_014 = new SysCode(10014, "Insufficient app permissions");
	/**
	 * 缺失必选参数（%s），请参考API文档
	 */

	public static final ErrorStatus sys_016 = new SysCode(10016, "Miss required parameter(%s),see doc for more info");
	/**
	 * 参数值非法，需为（ %s）,实际为（% s）， 请参考API文档
	 */

	public static final ErrorStatus sys_017 = new SysCode(10017,
			"Parameter(%s)'s value invalid, expect(%s),but get(%s),see doc for more info");
	/**
	 * 请求长度超过限制
	 */

	public static final ErrorStatus sys_018 = new SysCode(10018, "Request body length over limit");
	/**
	 * 接口不存在
	 */

	public static final ErrorStatus sys_020 = new SysCode(10020, "Request api not found");
	/**
	 * http method 不支持，请检查是否用post/get
	 */

	public static final ErrorStatus sys_021 = new SysCode(10021, "HTTP method is not supported for this request");
	/**
	 * 库存量不足，无法添加到购物车中
	 */

	public static final ErrorStatus sys_022 = new SysCode(10022, "库存量不足，无法添加到购物车中");
	/**
	 * 支付错误，订单不存在
	 */

	public static final ErrorStatus sys_023 = new SysCode(10023, "支付错误，订单不存在");
	/**
	 * access token和用户id不匹配
	 */
	public static final ErrorStatus sys_024 = new SysCode(10024, "access token和用户id不匹配");

	/**
	 * 满减卡号不正确
	 */
	public static final ErrorStatus sys_025 = new SysCode(10025, "满减卡号不正确");

	/**
	 * 满减卡未被激活
	 */
	public static final ErrorStatus sys_035 = new SysCode(10035, "满减卡未被激活或者不是当前用户的");

	/**
	 * 满减卡已被使用
	 */
	public static final ErrorStatus sys_026 = new SysCode(10026, "满减卡已被使用");

	/**
	 * 满减卡还未能使用或者已经过期
	 */
	public static final ErrorStatus sys_027 = new SysCode(10027, "满减卡还未能使用或者已经过期");

	/**
	 * 满减卡未达到使用标准
	 */
	public static final ErrorStatus sys_028 = new SysCode(10028, "满减卡未达到使用标准");
	/**
	 * 礼品卡号不正确
	 */
	public static final ErrorStatus sys_029 = new SysCode(10029, "礼品卡号不正确");

	/**
	 * 礼品卡已被使用
	 */
	public static final ErrorStatus sys_030 = new SysCode(10030, "礼品卡已被使用");

	/**
	 * 礼品卡还未能使用或者已经过期
	 */
	public static final ErrorStatus sys_031 = new SysCode(10031, "礼品卡还未能使用或者已经过期");

	/**
	 * 礼品卡未达到使用标准
	 */
	public static final ErrorStatus sys_032 = new SysCode(10032, "礼品卡未达到使用标准");
	/**
	 * 返券卡号不正确
	 */
	public static final ErrorStatus sys_033 = new SysCode(10033, "返券卡号不正确");
	/**
	 * 订单金额和数据库中金额不等，请确认订单
	 */
	public static final ErrorStatus sys_034 = new SysCode(10034, "订单金额和数据库中金额不等，请确认订单");
	/**
	 * 需要支付金额不符，请重新进行提交
	 */

	public static final ErrorStatus sys_036 = new SysCode(10036, "需要支付金额不符，请重新进行提交");
	/**
	 * 支付宝的交易号不相同
	 */
	public static final ErrorStatus sys_037 = new SysCode(10037, "支付宝的交易号不相同");
	/**
	 * 伙伴编号不相同
	 */
	public static final ErrorStatus sys_038 = new SysCode(10038, "伙伴编号不相同");
	/**
	 * token号不相同
	 */
	public static final ErrorStatus sys_039 = new SysCode(10039, "sign号不相同");
	/**
	 * 支付金额不相同
	 */
	public static final ErrorStatus sys_040 = new SysCode(10040, "支付金额不相同");
	/**
	 * 订单的金额不能为0
	 */
	public static final ErrorStatus sys_041 = new SysCode(10041, "订单的金额不能为0");
	/**
	 * 返券卡未被激活或者不是当前用户的
	 */
	public static final ErrorStatus sys_042 = new SysCode(10042, "返券卡未被激活或者不是当前用户的");
	/**
	 * 当前商品已经下架或者停用
	 */
	public static final ErrorStatus sys_043 = new SysCode(10043, "当前商品已经下架或者停用");
	/**
	 * 礼品卡的金额和实际金额不一致
	 */
	public static final ErrorStatus sys_044 = new SysCode(10044, "礼品卡的金额和实际金额不一致");
	/**
	 * 返券卡还未能使用或者已经过期
	 */
	public static final ErrorStatus sys_045 = new SysCode(10045, "返券卡还未能使用或者已经过期");
	/**
	 * 返券卡已被使用
	 */
	public static final ErrorStatus sys_046 = new SysCode(10046, "返券卡已被使用");
	/**
	 * 收货地址为空或者不正确
	 */

	public static final ErrorStatus sys_047 = new SysCode(10047, "收货地址为空或者不正确");
	/**
	 * 一张订单只能使用一种类型的卡
	 */
	public static final ErrorStatus sys_048 = new SysCode(10048, "一张订单只能使用一种类型的卡");
	/**
	 * 没有找到相应的货品
	 */
	public static final ErrorStatus sys_049 = new SysCode(10049, "没有找到相应的货品");

	/**
	 * 该商品已经下架
	 */
	public static final ErrorStatus sys_050 = new SysCode(10050, "该商品已经下架");
	/**
	 * 用户不存在
	 */

	public static final ErrorStatus sys_051 = new SysCode(10051, "账号异常，请重新登录");
	/**
	 * 该邮箱不存在
	 */

	public static final ErrorStatus sys_052 = new SysCode(10052, "该邮箱不存在");
	/**
	 * 密码有误
	 */

	public static final ErrorStatus sys_053 = new SysCode(10053, "密码有误");
	/**
	 * 密码长度不在6-16范围内
	 */

	public static final ErrorStatus sys_054 = new SysCode(10054, "密码长度不在6-16范围内");
	/**
	 * 该用户已存在
	 */

	public static final ErrorStatus sys_055 = new SysCode(10055, "该用户已存在");

	/**
	 * 该email已存在
	 */

	public static final ErrorStatus sys_056 = new SysCode(10056, "该email已存在");
	/**
	 * 注册失败
	 */

	public static final ErrorStatus sys_057 = new SysCode(10057, "注册失败");
	/**
	 * 此专题为电脑端专属的，请使用电脑端访问
	 */

	public static final ErrorStatus sys_060 = new SysCode(10060, "此专题为电脑端专属的，请使用电脑端访问");

	/**
	 * 该mobile已存在
	 */
	public static final ErrorStatus sys_061 = new SysCode(10061, "该手机号码已存在");

	/**
	 * 该mobile号码验证失败
	 */
	public static final ErrorStatus sys_062 = new SysCode(10062, "手机号格式有误,请重新输入");

	/**
	 * 该手机号码已经绑定
	 */
	public static final ErrorStatus sys_063 = new SysCode(10063, "该手机号码已经绑定！");

	/**
	 * 该手机号码尚未绑定账户
	 */
	public static final ErrorStatus sys_064 = new SysCode(10064, "该手机号码尚未绑定账户！");

	/**
	 * 该手机号码尚未绑定账户
	 */
	public static final ErrorStatus sys_065 = new SysCode(10065, "该手机号码不存在！");

	// ***************短信接口发送异常处理***start***
	/**
	 * 账号未注册
	 */
	public static final ErrorStatus sys_066 = new SysCode(10066, "账号未注册");

	/**
	 * 其他错误
	 */
	public static final ErrorStatus sys_067 = new SysCode(10067, "其他错误！");

	/**
	 * 密码错误
	 */
	public static final ErrorStatus sys_068 = new SysCode(10068, "密码错误");

	/**
	 * 手机号格式不对
	 */
	public static final ErrorStatus sys_069 = new SysCode(10069, "手机号格式不对");

	/**
	 * 余额不足
	 */
	public static final ErrorStatus sys_070 = new SysCode(10070, "余额不足");

	/**
	 * 定时发送时间不是有效的时间格式
	 */
	public static final ErrorStatus sys_071 = new SysCode(10071, "定时发送时间不是有效的时间格式");

	/**
	 * 禁止10小时以内向同一手机号发送相同短信
	 */
	public static final ErrorStatus sys_072 = new SysCode(10072, "禁止10小时以内向同一手机号发送相同短信");
	// ***************短信接口发送异常处理****end**
	/**
	 * 输入验证码有误
	 */
	public static final ErrorStatus sys_073 = new SysCode(10073, "输入验证码有误，请核对后重新输入！");

	/**
	 * 短信接口连接超时
	 */
	public static final ErrorStatus sys_074 = new SysCode(10074, "短信接口连接超时！");

	/**
	 * 手机号码注册，短信校验码不能为空
	 */
	public static final ErrorStatus sys_075 = new SysCode(10075, "请输入短信校验码！");

	/**
	 * 手机号码注册，短信校验码不能为空
	 */
	public static final ErrorStatus sys_076 = new SysCode(10076, "汽车不支持货到付款！");

	/**
	 * 金额超过货到付款的最大金额，请选择其他支付方式
	 */
	public static final ErrorStatus sys_077 = new SysCode(10077, "货到付款最大限额1000,请选择其他支付方式");

	/**
	 * 该邮箱错误
	 */
	public static final ErrorStatus sys_078 = new SysCode(10078, "该邮箱规则错误");

	/**
	 * 打折卡号不正确
	 */
	public static final ErrorStatus sys_079 = new SysCode(10079, "打折卡号不正确");

	/**
	 * 打折卡未被激活
	 */
	public static final ErrorStatus sys_080 = new SysCode(10080, "打折卡未被激活");

	/**
	 * 打折卡已被使用
	 */
	public static final ErrorStatus sys_081 = new SysCode(10081, "打折卡已被使用");

	/**
	 * 打折卡还未能使用或者已经过期
	 */
	public static final ErrorStatus sys_082 = new SysCode(10082, "打折卡还未能使用或者已经过期");

	/**
	 * 活动规则设置有问题
	 */
	public static final ErrorStatus sys_083 = new SysCode(10083, "活动规则设置有问题");

	/**
	 * 该商品不是打折商品
	 */
	public static final ErrorStatus sys_084 = new SysCode(10084, "该商品不是打折商品");

	/**
	 * 打折卡不存在
	 */
	public static final ErrorStatus sys_085 = new SysCode(10085, "该打折卡不存在");

	/**
	 * 打折卡不能使用
	 */
	public static final ErrorStatus sys_086 = new SysCode(10086, "该打折卡不能使用");

	/**
	 * 购物车里不存在打折商品
	 */
	public static final ErrorStatus sys_087 = new SysCode(10087, "该购物车不存在打折商品");

	/**
	 * 余额为0，不能使用
	 */
	public static final ErrorStatus sys_088 = new SysCode(10088, "您的余额为0，不能使用余额支付");

	/**
	 * 购物车没有商品
	 */
	public static final ErrorStatus sys_089 = new SysCode(10089, "您的购物车没有商品，请添加商品后再下单");

	/**
	 * 用户一天机会已经用光
	 */
	public static final ErrorStatus sys_090 = new SysCode(10090, "用户一天机会已经用光");

	/**
	 * 该商品不是手机专享（APP使用）商品
	 */
	public static final ErrorStatus sys_091 = new SysCode(10091, "该手机专享商品活动已过期！");

	/**
	 * 已经获取购物券，请重新答题！
	 */
	public static final ErrorStatus sys_092 = new SysCode(10092, "已经获取购物券，请重新答题！");

	/**
	 * 验证短信已经超出当天最大次数
	 */
	public static final ErrorStatus sys_093 = new SysCode(10093, "用户验证短信已经超出当天最大次数！");

	/**
	 * 优惠券生成任务不存在或已过期
	 */
	public static final ErrorStatus sys_094 = new SysCode(10094, "优惠券生成任务不存在或已过期 ！");

	/**
	 * 返券卡未指定作用区
	 */
	public static final ErrorStatus sys_095 = new SysCode(10095, "该返券卡未指定作用区 ，不能使用 ！");

	/**
	 * 返券卡不适用于该客户端
	 */
	public static final ErrorStatus sys_096 = new SysCode(10096, "该返券卡不适用于所使用客户端 ！");

	/**
	 * 上传文件超限
	 */
	public static final ErrorStatus sys_097 = new SysCode(10097, "上传文件超限 ！");

	/**
	 * 用户名必须是汉字字母数字或下划线的组合
	 */
	public static final ErrorStatus sys_098 = new SysCode(10098, "用户名必须是汉字字母数字或下划线的组合 ！");

	/**
	 * token值为null或为空
	 */
	public static final ErrorStatus sys_099 = new SysCode(10099, "access token为NUll或者空");

	/**
	 * 商品大于3限制
	 */
	public static final ErrorStatus sys_100 = new SysCode(10100, "一张订单限购3件,请修改商品数量");

	/**
	 * 您的订单中有商品库存不足
	 */
	public static final ErrorStatus sys_101 = new SysCode(10101, "您的订单中有商品库存不足");

	/**
	 * 手机号和账户id不匹配
	 */
	public static final ErrorStatus sys_102 = new SysCode(10102, "手机号和账户id不匹配");

	/**
	 * 邮箱和账户id不匹配
	 */
	public static final ErrorStatus sys_103 = new SysCode(10103, "邮箱和账户id不匹配");

	/**
	 * 重复提交订单
	 */
	public static final ErrorStatus sys_104 = new SysCode(10104, "重复提交订单");

	/**
	 * 用户已在黑名单，请联系客服解除限制
	 */
	public static final ErrorStatus sys_105 = new SysCode(10105, "用户已在黑名单，请联系客服解除限制");

	/**
	 * 此商品为网站活动商品，请移步网站下单抢购
	 */
	public static final ErrorStatus sys_106 = new SysCode(10106, "此商品为网站活动商品，请移步网站下单抢购");

	/**
	 * 此商品为限购商品,请修改数量
	 */
	public static final ErrorStatus sys_107 = new SysCode(10107, "此商品为限购商品,请修改数量");

	/**
	 * 此商品为限购商品,请修改数量
	 */
	public static final ErrorStatus sys_108 = new SysCode(10108, "此商品为限购商品,请修改数量");

	/**
	 * 该第三方单号不存在
	 */
	public static final ErrorStatus sys_109 = new SysCode(10109, "该第三方单号不存在");

	/**
	 * 此商品为限购商品,不能添加更多
	 */
	public static final ErrorStatus sys_110 = new SysCode(10110, "此商品为限购商品,不能添加更多");

	/**
	 * FTP上传出错！
	 */
	public static final ErrorStatus sys_111 = new SysCode(10111, "FTP上传出错！");

	/**
	 * FTP关闭异常！
	 */
	public static final ErrorStatus sys_112 = new SysCode(10112, "FTP关闭异常！");

	/**
	 * FTP下载出错！
	 */
	public static final ErrorStatus sys_113 = new SysCode(10113, "FTP下载出错！");

	/**
	 * FTP删除文件出错！
	 */
	public static final ErrorStatus sys_114 = new SysCode(10114, "FTP删除文件出错！");

	/**
	 * FTP删除文件出错！
	 */
	public static final ErrorStatus sys_115 = new SysCode(10115, "FTP读取列表出错！");

	/**
	 * Http出错！
	 */
	public static final ErrorStatus sys_116 = new SysCode(10116, "Http出错！");

	/**
	 * 此商品是错误商品
	 */
	public static final ErrorStatus sys_117 = new SysCode(10117, "此商品是错误商品");

	/**
	 * 此商品限购一件,请修改数量
	 */
	public static final ErrorStatus sys_118 = new SysCode(10118, "此商品限购一件,请修改数量");

	/**
	 * 订单第三方来源为空或者null
	 */
	public static final ErrorStatus sys_119 = new SysCode(10119, "订单第三方来源为空或者null");

	public static final ErrorStatus sys_120 = new SysCode(10120, "抱歉，网络系统繁忙，请稍后再试。");

	/**
	 * 邮政编码不符合规则
	 */
	public static final ErrorStatus sys_121 = new SysCode(10121, "邮政编码不符合规则");

	/**
	 * 输入框内不能包含特殊字符
	 */
	public static final ErrorStatus sys_122 = new SysCode(10122, "输入框内不能包含特殊字符");

	/**
	 * 礼券和商品不能混合购买
	 */
	public static final ErrorStatus sys_123 = new SysCode(10123, "礼券和商品不能混合购买");

	/**
	 * 本单不支持货到付款,请选择其他支付方式
	 */
	public static final ErrorStatus sys_124 = new SysCode(10124, "本单不支持货到付款,请选择其他支付方式");

	/**
	 * 商品库存不足,请查看
	 */
	public static final ErrorStatus sys_125 = new SysCode(10125, "商品库存不足,请查看");

	/**
	 * 商品已下架,请查看
	 */
	public static final ErrorStatus sys_126 = new SysCode(10126, "订单中有商品已下架,请检查");

	/**
	 * 账号过期,请重新登陆
	 */
	public static final ErrorStatus sys_127 = new SysCode(10127, "账号过期,请重新登陆");

	/**
	 * 购买的商品中有活动特殊商品，用户不符合购买条件，请查看
	 */
	public static final ErrorStatus sys_128 = new SysCode(10128, "购买的商品中有活动特殊商品，用户不符合购买条件，请查看");

	/* ===========用户行为相关错误编码，编号从20001开始=============== */
	/**
	 * 商品已经评论
	 */
	public static final ErrorStatus user_001 = new SysCode(20001, "此商品已经评论");

	/**
	 * 商品已经晒单
	 */
	public static final ErrorStatus user_002 = new SysCode(20002, "此商品已经晒单");

	/**
	 * 没有购买此商品
	 */
	public static final ErrorStatus user_003 = new SysCode(20003, "没有购买此商品");

	/* =============海外购相关错误编码，编号从40001开始=============== */
	/**
	 * 海外购订单状态错误，请检查订单
	 */
	public static final ErrorStatus custom_001 = new SysCode(40001, "没有购买此商品");

	/***
	 * 请升级版本购买海外商品
	 */
	public static final ErrorStatus custom_002 = new SysCode(40002, "请升级版本购买海外商品");

	/***
	 * 购物车内有商品只能添加一件
	 */
	public static final ErrorStatus custom_003 = new SysCode(40004, "购物车内有商品只能添加一件");

	@Override
	public int getModuleCode() {
		return ErrorModule.API_SHOP;

	}

}